package cn.xshi.oauth.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import cn.xshi.common.annotation.Auth;
import cn.xshi.common.base.BaseResult;
import cn.xshi.oauth.service.OauthUninstallService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
 * @Desc 卸载模块
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
@RestController
@Api(value = "卸载模块",tags = "卸载模块",description = "卸载模块")
public class OauthUninstallController {

    @Resource
    OauthUninstallService oauthUninstallService;

    /**
     * 卸载模块数据
     * @param id
     */
    @ApiOperation(value="卸载模块数据", notes="卸载模块数据")
    @DeleteMapping(value="/oauth/uninstall")
    @Auth(value = "/oauth/uninstall",authenticationType = Auth.AuthorizationType.REQUIRED_LOGIN_NOT_AUTH)
    public BaseResult uninstall(String id){

        return oauthUninstallService.delForUninstall(id);

    }

}
